import { AppComponent } from './app.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomePageComponent } from './home-page/home-page.component';
import { APP_BASE_HREF } from '@angular/common';

const routes: Routes = [
  { path: 'homePage', component: HomePageComponent },
  { path: 'angularsubapp', component: HomePageComponent }
];
@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule],
    // providers: [{ provide: APP_BASE_HREF, useValue: window.__POWERED_BY_QIANKUN__ ? '/angularsubapp' : '/' }]
})
export class AppRoutingModule { }
